<html>
	<head>
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
		<script language='javascript'>

		var thePage;
		var theTimer;
		
		function hello(url, timeout) {
			
			$("#title").html(window.top.frames[1].document.title);
			$("#display").html(url);
			
			thePage = url;
			window.top.document.title = window.top.frames[1].document.title;
			
			clearTimeout(theTimer);
			theTimer = setTimeout("recover();", (timeout ? timeout : 360) * 1000);
		}
		
		function recover() {
			$("#display").html("Recover action: " + thePage);
			window.top.frames[1].document.location.href = thePage;
			theTimer = setTimeout("recover();", 10 * 1000);
		}
			
		</script>
	</head>
	<body>
		<p id="title"></p>
		<p id="display">ready</p>
	</body>
</html>